﻿using RAP.Framework.Libary.DomTemplateBuilder.Interface;

namespace RAP.Framework.Libary.DomTemplateBuilder.Handler.Conditional
{
	/// <summary>
	/// 判断是否为True的Handler（类似JS中的真假判断，如果值为数字，那么不为0就为真。如果为字符串，不为空为真。）
	/// </summary>
	public class IsNotTrueHandler : IsTrueHandler
    {
		/// <summary>
		/// 对属性值进行判断
		/// </summary>
		/// <param name="propertyValue"></param>
		/// <param name="rootParamObject"></param>
		/// <param name="parentParamObject"></param>
		/// <param name="context"></param>
		/// <returns></returns>
		protected override bool DoCompareValue ( object propertyValue, object rootParamObject, object parentParamObject, ITemplateRenderContext context )
		{
			return !base.DoCompareValue ( propertyValue, rootParamObject, parentParamObject, context );
		}
    }
}
